package cn.com.utt.unms.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import cn.com.utt.unms.pojo.Model;

@Mapper
public interface ModelMapper {
	@Select("select * from device_model where id=#{id}")
	@Results({  
		@Result(id=true, column="id", property="id"),  
		@Result(column="type", property="type"),
		@Result(column="hardware_version", property="hardwareVersion"),
		@Result(column="product_class", property="productClass")
	}) 
	Model queryById(@Param("id")Long id);
}
